home *** CD-ROM | disk | FTP | other *** search
- /*
- File: graphics macintosh.h
-
- Copyright: © 1984-1995 by Apple Computer, Inc., all rights reserved.
-
- WARNING
- This file was auto generated by the interfacer tool. Modifications
- must be made to the master file.
-
- */
-
- #ifndef graphicsMacintoshIncludes
- #define graphicsMacintoshIncludes
- #include "Types.h"
-
- #define gestaltGraphicsVersion 'grfx'
-
- #define gestaltCurrentGraphicsVersion 0x00010100
-
- #define gestaltGraphicsAttr 'gfxa'
-
- #define gestaltGraphicsIsDebugging 0x00000001
-
- #define gestaltGraphicsIsLoaded 0x00000002
-
- #define gestaltGraphicsIsPowerPC 0x00000004
-
- #ifndef graphicsLinkageIncludes
- #include "graphics linkage.h"
- #endif
-
- enum {
- defaultPollingHandlerFlags = 0x00,
- okToSwitchDuringPollFlag = 0x00,
- dontSwitchDuringPollFlag = 0x01
- };
-
- typedef long gxPollingHandlerFlags;
-
- typedef void (*gxPollingHandlerProcPtr)(long reference, gxPollingHandlerFlags flags);
-
- enum {
- uppgxPollingHandlerProcInfo = kCStackBased
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(long)))
- | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxPollingHandlerFlags)))
- };
-
- #if USESROUTINEDESCRIPTORS
- typedef UniversalProcPtr gxPollingHandlerUPP;
-
- #define CallgxPollingHandlerProc(userRoutine, reference, flags) \
- CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxPollingHandlerProcInfo, (reference), (flags))
- #define NewgxPollingHandlerProc(userRoutine) \
- (gxPollingHandlerUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxPollingHandlerProcInfo, GetCurrentISA())
- #else
- typedef gxPollingHandlerProcPtr gxPollingHandlerUPP;
-
- #define CallgxPollingHandlerProc(userRoutine, reference, flags) \
- (*(userRoutine))((reference), (flags))
- #define NewgxPollingHandlerProc(userRoutine) \
- (gxPollingHandlerUPP)(userRoutine)
- #endif
-
- extern gxPollingHandlerUPP GXGetGraphicsPollingHandler(long *reference)
- THREEWORDINLINE(0x303C, 0x245, 0xA832);
- extern void GXSetGraphicsPollingHandler(gxPollingHandlerUPP handler, long reference)
- THREEWORDINLINE(0x303C, 0x246, 0xA832);
- #endif
-
-